group '${packageName}'
version '1.0-SNAPSHOT'
buildscript {
    ext {
        springBootVersion = '1.5.2.RELEASE'
    }
    repositories {
        mavenCentral()
    }
    dependencies {
       classpath("org.springframework.boot:spring-boot-gradle-plugin:${"$"}{springBootVersion}")
    }
}

ext {
}
//插件
apply plugin: 'java'
apply plugin: "idea"
apply plugin: 'maven'
apply plugin: "spring-boot"

dependencyManagement {
    imports {
        mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Dalston.SR1'
    }
}

repositories {
    maven { url "http://maven.e-lingcloud.com/nexus/content/groups/public/" }
    maven{ url "http://maven.aliyun.com/nexus/content/groups/public/"}
    mavenCentral()
}


dependencies {
    compile "org.ligson.fwc:fw_core:1.0-SNAPSHOT"
    compile "org.springframework.cloud:spring-cloud-starter-feign"
    compile "org.springframework.boot:spring-boot-starter-actuator"
}

//默认编译时文件编码
tasks.withType(JavaCompile) {
    options.encoding = "UTF-8"
}

//每次更新snapshot
configurations.all {
    // check for updates every build
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}